package com.auanaum.sevice;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.auanaum.dao.MovieDao;
import com.auanaum.dto.Movie;


@Service
public class MovieService {
	@Autowired
	private MovieDao movieDao;
	
	public void addMovie(Movie movie){
		this.movieDao.create(movie);
	}
	
	public List<Movie> findAllMovies(){
		return this.movieDao.findAll();
	}

}
